'use strict';
// 验证token合法性
const {
	getToken,
	verifyToken
} = require('wx-common')
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ----', event)
	const token = event.token
	const flag = verifyToken(token)
	//返回数据给客户端
	return flag
};